//
//  TabBarLayoutExampleAppDelegate.m
//  TabBarLayoutExample
//
//  Copyright Google Inc 2010. All rights reserved.
//

#import "TabBarLayoutExampleAppDelegate.h"


@implementation TabBarLayoutExampleAppDelegate

@synthesize window;
@synthesize tabBarController;

static GADAdViewController *adViewController = nil;

- (GADAdViewController *)getAdViewController {
  if (adViewController == nil) {
    adViewController = [[GADAdViewController alloc] initWithDelegate:nil];
  }
  return adViewController;
}

- (void)applicationDidFinishLaunching:(UIApplication *)application {

  // Add the tab bar controller's current view as a subview of the window
  [window addSubview:tabBarController.view];

  [window makeKeyAndVisible];
}

- (void)dealloc {
  [adViewController release];
  [tabBarController release];
  [window release];
  [super dealloc];
}

@end

